package com.java.springboot.elasticsearch.mapper;

import com.java.springboot.elasticsearch.model.ReadBookPd;
import com.java.springboot.elasticsearch.model.ReadBookPdExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ReadBookPdMapper {
    
    int countByExample(ReadBookPdExample example);

    int deleteByExample(ReadBookPdExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(ReadBookPd record);

    int insertSelective(ReadBookPd record);

    List<ReadBookPd> getReadBookPdList(@Param("offset") Integer offset, @Param("limit") Integer limit);
    
    List<ReadBookPd> selectByExampleWithBLOBs(ReadBookPdExample example);

    List<ReadBookPd> selectByExample(ReadBookPdExample example);

    ReadBookPd selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") ReadBookPd record, @Param("example") ReadBookPdExample example);

    int updateByExampleWithBLOBs(@Param("record") ReadBookPd record, @Param("example") ReadBookPdExample example);

    int updateByExample(@Param("record") ReadBookPd record, @Param("example") ReadBookPdExample example);

    int updateByPrimaryKeySelective(ReadBookPd record);

    int updateByPrimaryKeyWithBLOBs(ReadBookPd record);

    int updateByPrimaryKey(ReadBookPd record);

    List<Map<String, Object>> buildESQuery(@Param("id") Integer id);
}